home *** CD-ROM | disk | FTP | other *** search
- SET_EXPONENT(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- SSEETT__EEXXPPOONNEENNTT - Sets exponent part of a number
-
- SSYYNNOOPPSSIISS
- SSEETT__EEXXPPOONNEENNTT (([XX==]_x,, [II==]_i))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The SSEETT__EEXXPPOONNEENNTT intrinsic function sets the exponent part of a
- number. It returns the numeric model number whose fractional part is
- the fractional part of the real number model representation of _x and
- whose exponent part is _i. For more information on the real number
- model, see the MMOODDEELLSS(3I) man page. It accepts the following
- arguments:
-
- _x Must be of type real
-
- _i Must be of type integer
-
- SSEETT__EEXXPPOONNEENNTT is an elemental function. The name of this intrinsic
- cannot be passed as an argument.
-
- NNOOTTEESS
- This routine is implemented on CRAY T90 systems that support IEEE
- arithmetic by calls to scalar-only library routines.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _x.
- _i-_e
- The result has the value (_x)(_b ), where _b and _e are defined in the
- model, provided that this result is within range. Argument _i should
- be within the range of MMIINNEEXXPPOONNEENNTT((_x)) <= _i <= MMAAXXEEXXPPOONNEENNTT((_x)). If _i is
- outside this range, the results are unpredictable. If _x has value 0,
- the result has value 0.
-
- EEXXAAMMPPLLEESS
- SSEETT__EEXXPPOONNEENNTT((33..00,, 11)) has the value 1.5.
-
- SSEEEE AALLSSOO
- MMOODDEELLSS(3I)
-
- _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _2, publication SR-3903
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-